#pragma once

class U7FilesLoader
{
public:
	char* paletteFile;
	char* shapeFile;
	char* textFile;
	char* shpDimsFile;
	char* tfaFile;
	char* occludeFile;
	char* chunkFile;
	char* mapFile;
	char* fontFile;
	char* gumpFile;
	char* xformTblFile;
	char* u7nbufFile; // U7NBUF.DAT
	char* u7ibufFile; // U7IBUF.DAT

	long u7nbufFileSize;

	char* ifixFiles[144];
	char* iregFiles[144];
	long  iregFileSizes[144];

	unsigned memoryAllocatedBytes;

	U7FilesLoader();
	~U7FilesLoader();

	void Load( const char* rootPath );

private:
	// helper
	unsigned Load( const char* filename, char** buffer, long* fileSize = NULL );

};

